package org.joa.examples.philosophers.generated;

import org.joa.actor.ActorName;
import org.joa.examples.philosophers.ChopstickActor;
import org.joa.manager.ActorManager;

public class ChopstickProxy {

    // Create a proxy for a new actor instance
    public static Chopstick create(ActorName owner) {
        return (Chopstick) ActorManager.instance.createActorProxy(
            owner,
            ChopstickActor.class,
            Chopstick.class);
    }

    // Create a proxy for an existing actor instance
    public static Chopstick create(ActorName remote, ActorName owner) {
        return (Chopstick) ActorManager.instance.createActorProxy(remote, owner, Chopstick.class);
    }
}
